//
//  AboutCommaViewController.m
//  Comma
//
//  Created by dlios on 15-1-13.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "AboutCommaViewController.h"
#import "AboutCommaView.h"
#import "YRSideViewController.h"
@interface AboutCommaViewController ()

@end

@implementation AboutCommaViewController

- (void)loadView
{
    [super loadView];
    // 不能划出侧边栏
    YRSideViewController *slide = [YRSideViewController share];
    slide.needSwipeShowMenu = NO;
    self.customView = [[AboutCommaView alloc] initWithLeftButton:@"返回" RightButton:nil Title:nil FooterView:FooterViewStateNone];
    [_customView setUI];
    [_customView.leftButton addTarget:self action:@selector(leftButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    self.view = _customView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.customView.weiboButton addTarget:self action:@selector(weiboButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.customView.weChatButton addTarget:self action:@selector(weChatButtonAction:) forControlEvents:UIControlEventTouchUpInside];

}

- (void)weiboButtonAction:(id)sender
{
    [self.customView createWebViewWithUrl:@"http://weibo.com/5261631947/profile"];
    
}
- (void)weChatButtonAction:(id)sender
{
    [self.customView createWebViewWithUrl:@"http://weibo.com/5261631947/profile"];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)leftButtonAction:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
